package xjtu.sad.zbsj.user.forget.dao;

import xjtu.sad.zbsj.user.forget.ForgetDto;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author lkm
 */
public interface ForgetDao {
    @Select("select count(*) from t_user_info where mail = #{u_eml}")
    int findCntByEml(ForgetDto dto);

    @Update("update t_user_info set passwd = #{u_pwd} where mail = #{u_eml}")
    void updatePwd(ForgetDto dto);


}
